package org.example.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author ducai
 * @since 2024-12-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("room_config")
public class RoomConfig extends Model<RoomConfig> {

private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 是否删除 0-未删除  1-已删除
     */
    @TableField("is_del")
    private Long isDel;

    /**
     * 删除时间
     */
    @TableField("dele_time")
    private LocalDateTime deleTime;

    /**
     * 房间名称
     */
    @TableField("room_name")
    private String roomName;

    /**
     * 房间封面图片
     */
    @TableField("room_photo")
    private String roomPhoto;

    /**
     * 房间介绍
     */
    @TableField("room_information")
    private String roomInformation;

    /**
     * 房间标签
     */
    @TableField("room_tags")
    private String roomTags;

    /**
     * 房间进纬度
     */
    @TableField("room_address")
    private String roomAddress;

    /**
     * 绑定的用户
     */
    @TableField("user_uuid")
    private String userUuid;


    public static final String ID = "id";

    public static final String UPDATE_TIME = "update_time";

    public static final String CREATE_TIME = "create_time";

    public static final String IS_DEL = "is_del";

    public static final String DELE_TIME = "dele_time";

    public static final String ROOM_NAME = "room_name";

    public static final String ROOM_PHOTO = "room_photo";

    public static final String ROOM_INFORMATION = "room_information";

    public static final String ROOM_TAGS = "room_tags";

    public static final String ROOM_ADDRESS = "room_address";

    public static final String USER_UUID = "user_uuid";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
